package com.example.rae.service.impl;

import com.example.rae.dao.ProductDao;
import com.example.rae.entity.Product;
import com.example.rae.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author YangZeRong
 * @Date 2022/4/24 19:49
 * @Version 1.0
 */
@Service

public class ProductServiceImpl implements ProductService {

    @Autowired
    private ProductDao productDao;

    @Override
    public Product findById(Integer pid) {
        return productDao.findById(pid).get();
    }
}
